#pragma once

#include <windows.h>
#include <commctrl.h>
#include <list>

using namespace std ;

class CAppleList
{
	
public:
	CAppleList(HDC hdc,RECT * prect);
	~CAppleList(void);
	void Paint(HDC hdc);
	BOOL Add(const TCHAR *l,const TCHAR *r);
protected:
	HFONT hleftfont;
	HFONT hrightfont;
	HPEN hpen;
	HBRUSH hbrbg;
	RECT rect;
	RECT fontrect;
private:
	const int LINE_HIGHT;
	const int FONT_OFFSET;
	struct vlist
	{
		const TCHAR * left;
		int leftlen;
		const TCHAR * right;
		int rightlen;

	};

	list <struct vlist> mylist;
	list <struct vlist>::iterator m_Iter;

	
	
};


